简体   繁体   English

智能卡,PIN,安全HTTP,登录和下载以及操作源HTML-需要合适的编码语言

[英]Smart card, PIN, Secure HTTP, Login and Downloading and manipulating the source html - need a suitable coding langugage

I am now motivated to explore a coding language so that I can make the best solution possible. 现在,我有动力探索一种编码语言,以便我尽可能地提出最佳解决方案。 But I am not sure of the capabilities of all coding langugages, so I am asking for advice. 但是我不确定所有编码语言的功能,所以我想请教。

I want to automate some of the daily processes I do at the office. 我想自动化我在办公室执行的某些日常流程。 There is an external database on the internet that we use. 我们使用的互联网上有一个外部数据库。 We access it with a smart card and secured http. 我们使用智能卡和安全的http访问它。

In short, these are the actions that I do each time I restart the browser or a session ends: 简而言之,以下是每次我重新启动浏览器或会话结束时执行的操作:

  1. Open a Secured HTTP. 打开安全的HTTP。 /....jsp /....jsp
  2. After being promted I choose an installed certificate 提示后,我选择一个已安装的证书
  3. A smart card is called and I enter a PIN. 会调用智能卡,然后输入PIN码。 /charismatics smart security interface/ /魅力智能安全界面/
  4. The page asks me to log in with a username and password. 该页面要求我使用用户名和密码登录。
  5. I open the desired link. 我打开所需的链接。
  6. I extract the data from the opened webpage manually. 我从打开的网页中手动提取数据。

Is it possible to have all these action automated by code? 是否可以通过代码自动执行所有这些操作?

THANK YOU FOR ANY SUPPORT 谢谢您的支持

If you get a PIN screen from the charismatics smart card security interface instead of from the operating system then it it may be very hard to automate this. 如果从魅力型智能卡安全界面(而不是从操作系统)获取PIN屏幕,则可能很难自动执行此操作。 Your program is unlikely to get access to the PIN popup Window. 您的程序不太可能访问PIN弹出窗口。

If you get the PIN prompt from a CSP (as you mentioned in the comments) then it may be possible to automate the PIN login. 如果您从CSP收到PIN提示(如注释中所述),则可能可以自动执行PIN登录。 The PIN is normally used to set up the SSL/TLS connection, so having it open in the browser won't help you much, unless you program the browser itself. PIN通常用于建立SSL / TLS连接,因此,除非您对浏览器本身进行编程,否则在浏览器中将其打开将无济于事。

If you are bound to CSP's it may be best to keep to C#/.NET. 如果您受CSP的约束,则最好保留C#/。NET。 There are of course bindings for other runtimes, but it is better to have as much control as possible. 当然还有其他运行时的绑定,但是最好有尽可能多的控制。

You may want to take a look at topics such as parsing HTML , because that's something you certainly need to do. 您可能需要看一下诸如HTML解析之类的主题,因为这确实是您需要做的。 Life becomes a lot harder if the web-pages are filled in using JavaScript, so you may check for that first. 如果使用JavaScript填充网页,生活会变得更加困难,因此您可以首先检查一下。

Now if you want to manually choose a link you may want to render the page in your own application and handle the download yourself. 现在,如果您要手动选择一个链接,则可能需要在自己的应用程序中呈现页面并自己处理下载。

This is certainly not a task I would recommend when starting off on an unknown programming language. 当开始使用未知的编程语言时,我当然不建议这样做。 I would find this a tricky task - there are a lot of if s left with this description. 我会发现这是一项棘手的任务-此说明中还有很多if

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM